package car.aistar.bo;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName LaoxuSales
 * @Description TODO 卖车审核bo类
 * @Author laoxu
 * @Date 2020/10/7 8:18
 * Version 1.0
 **/

public class LaoxuSales implements Serializable {
    /**
     * 卖家电话
     */
    private String call;
    /**
     * 品牌
     */
    private String brName;
    /**
     * 车系
     */
    private String stName;
    /**
     * 上牌时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date carRegistration;
    /**
     * 行驶里程
     */
    private Double carMileage;
    /**
     * 车况基本描述
     */
    private String carDesc;

    public LaoxuSales() {
    }

    public LaoxuSales(String call, String brName, String stName, Date carRegistration, Double carMileage, String carDesc) {
        this.call = call;
        this.brName = brName;
        this.stName = stName;
        this.carRegistration = carRegistration;
        this.carMileage = carMileage;
        this.carDesc = carDesc;
    }

    public String getCall() {
        return call;
    }

    public void setCall(String call) {
        this.call = call;
    }

    public String getBrName() {
        return brName;
    }

    public void setBrName(String brName) {
        this.brName = brName;
    }

    public String getStName() {
        return stName;
    }

    public void setStName(String stName) {
        this.stName = stName;
    }

    public Date getCarRegistration() {
        return carRegistration;
    }

    public void setCarRegistration(Date carRegistration) {
        this.carRegistration = carRegistration;
    }

    public Double getCarMileage() {
        return carMileage;
    }

    public void setCarMileage(Double carMileage) {
        this.carMileage = carMileage;
    }

    public String getCarDesc() {
        return carDesc;
    }

    public void setCarDesc(String carDesc) {
        this.carDesc = carDesc;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("LaoxuSales{");
        sb.append("call='").append(call).append('\'');
        sb.append(", brName='").append(brName).append('\'');
        sb.append(", stName='").append(stName).append('\'');
        sb.append(", carRegistration=").append(carRegistration);
        sb.append(", carMileage=").append(carMileage);
        sb.append(", carDesc='").append(carDesc).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
